﻿namespace ApplicationControllerExample.Views.Secondary
{
    using System;
    using System.Windows.Forms;

    public partial class SecondaryView : Form, ISecondaryView
    {
        public SecondaryView()
        {
            InitializeComponent();
        }

        #region ISecondaryView Members

        public SecondaryPresenter Presenter { get; set; }

        public void Run()
        {
            ShowDialog();
        }

        #endregion

        private void button1_Click(object sender, EventArgs e)
        {
            Presenter.Whatever();
        }

        private void clickThisYoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Presenter.ThatThingHappened("Did you click the menu item?");
        }
    }
}